package com.pattern.agency;

public class Test {
    public static void main(String[] args) {
        UserProxy userProxy = new UserProxy(new UserService());
        IUserService iUserService = (IUserService)userProxy.createProxy();
        System.out.println(iUserService.getUserName());
    }
}
